home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 2871 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  668 b 

  1. Path: news.ust.hk!ee_chung
  2. From: ee_chung@uxmail.ust.hk (Chu Shiu Chung)
  3. Newsgroups: comp.lang.c
  4. Subject: Is it possible?
  5. Date: 24 Jan 1996 15:58:18 GMT
  6. Organization: The Hong Kong University of Science and Technology
  7. Message-ID: <4e5kuq$9i7@news.ust.hk>
  8. NNTP-Posting-Host: ustsu4.ust.hk
  9. X-Newsreader: TIN [version 1.2 PL2]
  10.  
  11.  
  12. Hello,
  13.  
  14.      If I have declare the following:
  15.           #define FILENUM  12
  16.  
  17.      Is it possible to make the compiler to replace this in printf:
  18.            printf("FILENUM is the number of files");
  19. instead of
  20.            printf("%d is the number of files", FILENUM);
  21.  
  22. Just like what the compiler do in: int a=FILENUM;
  23.  
  24.      Thanks! :>
  25.  
  26. C.S.C.
  27.